<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>整车调度管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>	
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/vehi/tRealscheVehis/rentprodlist">整车调度列表</a></li>
	</ul>
	<form:form id="searchForm"  action="${ctx}/vehi/tRealscheVehis/rentprodlist" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
					<li>
				<span><label>发车日期：</label></span>
				<input type="text"  name="departdateStr" maxlength="20" readonly class="input-mini Wdate"
					value="${tRealscheVehis.departdateStr }"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true,minDate:'${today}'});"/>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>归属公司</th><th>产品名称</th><th>发车时间</th><th>车牌号</th><th>车型名称</th>
				<th>订单联系人</th>
				<th>联系电话</th>
				<th>车辆状态</th>
				<th>司机是否确认</th>
				<shiro:hasPermission name="vehi:tRealscheVehis:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="tRealscheVehis">
			<tr>
				<td>${tRealscheVehis.office.name}</td>
				<td>${tRealscheVehis.schename}</td>
				<td><fmt:formatDate value="${tRealscheVehis.departtime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				<td>${tRealscheVehis.licno}</td>
				<td>${tRealscheVehis.vehiclename}</td>
				<td>${tRealscheVehis.orders.contacts}</td>
				<td>${tRealscheVehis.orders.payertel}</td>
				<td>${fns:getDictLabel(tRealscheVehis.vehistatus, 'vehistatus', '无')}</td>
				<td>${fns:getDictLabel(tRealscheVehis.drvconfirmed, 'yes_no', '无')}</td>
				<shiro:hasPermission name="vehi:tRealscheVehis:edit"><td>
				<c:if test="${tRealscheVehis.vehistatus == '1' }">
    				<a href="${ctx}/vehi/tRealscheVehis/rentform?id=${tRealscheVehis.realvehiid}">调度</a>
    				<a href="${ctx}/vehi/tRealscheVehis/rentconfirm?id=${tRealscheVehis.realvehiid}" onclick="return confirmx('该车辆已确认调度吗？', this.href)">确认</a>
    			</c:if>
    				<a href="${ctx}/orders/tOrders/busOrdersForm?id=${tRealscheVehis.orders.orderid}">订单详情</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>